/*
 *
 *
 *
 *
 */
#ifdef __cplusplus
 extern ""C"" {
#endif

#ifndef LCD_H_
#define LCD_H_
/* Includes -----------------------------------------------------------------------*/

#include <stm32f4xx_rcc.h>
#include <stm32f4xx_gpio.h>
/* Exported constants -------------------------------------------------------------*/

#define LCD_PORT GPIOC
#define LCD_RCC_GPIO RCC_AHB1Periph_GPIOC
#define LCD_E_Pin GPIO_Pin_12
#define LCD_RS_Pin GPIO_Pin_10
/* Exported functions -------------------------------------------------------------*/

void delay(unsigned int s);
void lcd_init_gpio();
void lcd_write_data(u16 data);
void lcd_init();
void lcd_write_str(char*str);
void lcd_write_cmd(u16 cmd);
void lcd_set_cursor(int line,int pos);
void lcd_write_dec_xxx(uint16_t data);
void lcd_write_dec_xxx(uint16_t data);
void lcd_write_dec_xx(uint8_t data);
void lcd_write_dec_x(uint8_t data);

#ifdef __cplusplus
 }
#endif

